/*!
\copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\ingroup    adk_test_common
\brief      Interface to test Serial Port Profile Server using it as loopback application.
*/
#ifndef SPPS_TEST_H
#define SPPS_TEST_H

#ifdef INCLUDE_SPPS_LOOPBACK_TEST 

/*! \brief Start SPP server after initializing it with custom SDP record.

    This function instantiates SPP Server instances with a custom SPP SDP record. In case of earbud, This function 
    needs to be invoked both on primary as well as secondary buds.

    \param spp_instance_index of the instance to be initialized. Index should always be less than spp_max_instances
    \note This functionality shall be used only for development purpose and shall NOT be invoked on an end product.
*/
void SppTest_ServiceStart(uint8 spp_instance_index);

/*! \brief Deactivate/unregister SPP Service record with instance index as reference, which was activated previously.
    Call to this function will also disconnect SPP link if there are any with the respective instance

    \param spp_instance_index of the instance to be deactivated. Index should always be less than spp_max_instances
    \note This functionality shall be used only for development purpose and shall NOT be invoked on an end product.
*/
void SppTest_ServiceStop(uint8 spp_instance_index);

/*! \brief Disconnect SPP service based on instance index. Also registers the respective SPP SDP service record again
    to enable clients for subsequent connection.

    \note This functionality shall be used only for development purpose and shall NOT be invoked on an end product.
*/
void SppTest_Disconnect(uint8 spp_instance_index);


#endif /*INCLUDE_SPPS_LOOPBACK_TEST*/

#endif /*SPPS_TEST_H*/

